-- GENERATED SPELL FOR [Drakkari Fire Weaver] --


function spell0_29822(pUnit, Event) --@Blast Wave,Self--
pUnit:FullCastSpellOnTarget(61362,pUnit)
pUnit:RegisterEvent('Sorts_29822', 6348, 1)
end

function spell1_29822(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(55613,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29822', 12000, 1)
end

function spell2_29822(pUnit, Event) --@Flame Shock,n/a--
pUnit:FullCastSpellOnTarget(58971,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29822', 12000, 1)
end

function spell3_29822(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(55659,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29822', 2000, 1)
end

function spell4_29822(pUnit, Event) --@Lava Burst,n/a--
pUnit:FullCastSpellOnTarget(58972,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29822', 1500, 1)
end

function Sorts_29822(pUnit, Event)
local choix_sorts_29822 = math.random(0, 4)
if choix_sorts_29822 == 0 then
pUnit:RegisterEvent('spell0_29822', 1, 1)
end
if choix_sorts_29822 == 1 then
pUnit:RegisterEvent('spell1_29822', 1, 1)
end
if choix_sorts_29822 == 2 then
pUnit:RegisterEvent('spell2_29822', 1, 1)
end
if choix_sorts_29822 == 3 then
pUnit:RegisterEvent('spell3_29822', 1, 1)
end
if choix_sorts_29822 == 4 then
pUnit:RegisterEvent('spell4_29822', 1, 1)
end
end

function mob29822_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29822', math.random(1500, 3000), 1)
end

function mob29822_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29822_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29822_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29822, 1, 'mob29822_Action')
RegisterUnitEvent(29822, 2, 'mob29822_Leave')
RegisterUnitEvent(29822, 3, 'mob29822_Kill')
RegisterUnitEvent(29822, 4, 'mob29822_Die')
